import React, { PureComponent } from 'react'

import './loading.less'

class Loading extends PureComponent {
  static defaultProps = {
    className: '',
    style: {}
  }

  render () {
    const { className, style } = this.props
    return (
      <div className={`loading ${className}`} style={style}>
        <i className="icon-loading loading-indicator"/>
      </div>
    )
  }
}

export default Loading
